package com.softlook.mt.server.db.dto;

import java.lang.Integer;
import java.lang.Double;
import java.lang.String;
import com.softlook.mt.server.db.dto.User;
import com.softlook.mt.server.db.dto.Client;
import java.util.List;
import java.util.LinkedList;
import java.lang.Object;

public class Place {
	private Integer placeid;
	private Integer userid;
	private Integer clientid;
	private Double lat;
	private Double lon;
	private Double delta;
	private String name;
	private User useridUserRefObj = null;
	private Client clientidClientRefObj = null;
	private List placeidDeviceeventRefList = new LinkedList();
	public Integer getPlaceid() {
		return this.placeid;
	}
	public void setPlaceid(Integer placeid) {
		this.placeid = placeid;
	}
	public Integer getUserid() {
		return this.userid;
	}
	public void setUserid(Integer userid) {
		this.userid = userid;
	}
	public Integer getClientid() {
		return this.clientid;
	}
	public void setClientid(Integer clientid) {
		this.clientid = clientid;
	}
	public Double getLat() {
		return this.lat;
	}
	public void setLat(Double lat) {
		this.lat = lat;
	}
	public Double getLon() {
		return this.lon;
	}
	public void setLon(Double lon) {
		this.lon = lon;
	}
	public Double getDelta() {
		return this.delta;
	}
	public void setDelta(Double delta) {
		this.delta = delta;
	}
	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static boolean hasColumn(String column) {
		if(column.toUpperCase().equals("placeid".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("userid".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("clientid".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("lat".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("lon".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("delta".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("name".toUpperCase())){
		   return true;
		}
		return false;
	}
	public boolean equals(Object object) {
		if(!(object instanceof Place)){
			return false;
		}
		
		Place table = (Place)object;
		if(this.placeid == null &&  table.placeid != null){
		   return false;
		}
		if(this.placeid != null &&  table.placeid == null){
		   return false;
		}
		if(this.placeid != null && !this.placeid.equals(table.placeid)){
		   return false;
		}
		if(this.userid == null &&  table.userid != null){
		   return false;
		}
		if(this.userid != null &&  table.userid == null){
		   return false;
		}
		if(this.userid != null && !this.userid.equals(table.userid)){
		   return false;
		}
		if(this.clientid == null &&  table.clientid != null){
		   return false;
		}
		if(this.clientid != null &&  table.clientid == null){
		   return false;
		}
		if(this.clientid != null && !this.clientid.equals(table.clientid)){
		   return false;
		}
		if(this.lat == null &&  table.lat != null){
		   return false;
		}
		if(this.lat != null &&  table.lat == null){
		   return false;
		}
		if(this.lat != null && !this.lat.equals(table.lat)){
		   return false;
		}
		if(this.lon == null &&  table.lon != null){
		   return false;
		}
		if(this.lon != null &&  table.lon == null){
		   return false;
		}
		if(this.lon != null && !this.lon.equals(table.lon)){
		   return false;
		}
		if(this.delta == null &&  table.delta != null){
		   return false;
		}
		if(this.delta != null &&  table.delta == null){
		   return false;
		}
		if(this.delta != null && !this.delta.equals(table.delta)){
		   return false;
		}
		if(this.name == null &&  table.name != null){
		   return false;
		}
		if(this.name != null &&  table.name == null){
		   return false;
		}
		if(this.name != null && !this.name.equals(table.name)){
		   return false;
		}
		return true;
	}
	public User getUseridUserRefObj() {
		return this.useridUserRefObj;
	}
	public void setUseridUserRefObj(User useridUserRefObj) {
		this.useridUserRefObj = useridUserRefObj;
	}
	public Client getClientidClientRefObj() {
		return this.clientidClientRefObj;
	}
	public void setClientidClientRefObj(Client clientidClientRefObj) {
		this.clientidClientRefObj = clientidClientRefObj;
	}
	public List getPlaceidDeviceeventRefList() {
		return this.placeidDeviceeventRefList;
	}
	public void setPlaceidDeviceeventRefList(List placeidDeviceeventRefList) {
		this.placeidDeviceeventRefList = placeidDeviceeventRefList;
	}
}
